package com.idanchuang.support.etcache.pressure;

/**
 * @author yjy
 * Created at 2021/12/27 2:12 下午
 */
@FunctionalInterface
public interface PressureChecker {

    /**
     * 当前操作是否为压测逻辑
     * @return 是否压测
     */
    boolean isPressure();

    /**
     * 无压测环境
     */
    class NonPressureChecker implements PressureChecker {

        @Override
        public boolean isPressure() {
            return false;
        }
    }

}
